package com.nce.util;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

/**
 * 
 * @author GT
 *
 */
public class WrapperUser extends User{
	
	private com.nce.entity.account.User user;

	public WrapperUser(String username, String password, boolean enabled,
			boolean accountNonExpired, boolean credentialsNonExpired,
			boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities) {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired,
				accountNonLocked, authorities);
	}
	
	//放入项目对应的User
	public WrapperUser(String username, String password, boolean enabled,
			boolean accountNonExpired, boolean credentialsNonExpired,
			boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities,com.nce.entity.account.User u) {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired,
				accountNonLocked, authorities);
		user = u;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = -9009328925750302971L;

	public com.nce.entity.account.User getUser() {
		return user;
	}

	public void setUser(com.nce.entity.account.User user) {
		this.user = user;
	}

	
	
	

}
